package cn.edu.scau.cmi.yangminghao.composite;

import javax.sound.sampled.UnsupportedAudioFileException;

import cn.edu.scau.cmi.yangminghao.client.interProgrammingClient;
import cn.edu.scau.cmi.yangminghao.client.interProgrammingClient2;

public class Man2 implements Componet2{
	private String names;
	public void name(int v) {
		String s1="--";
		while(v>0) {
			s1+="--";
			v--;
		}
		s1+="||";
		interProgrammingClient2.org+=s1+"男 "+names+"\n" ;
	}
	public String getNames() {
		return names;
	}
	public Man2(String names) {
		super();
		this.names = names;
	}
	public Man2() {
		
	}
	@Override
	public void add(Componet2 s) {
		// TODO Auto-generated method stub
		throw new UnsupportedOperationException("This operation is not supported");
	}
	@Override
	public void remove(Componet2 s) {
		// TODO Auto-generated method stub
		throw new UnsupportedOperationException("This operation is not supported");
	}
	
}
